package com.googlecode.gendevcode.model.pdm;

import java.util.ArrayList;
import java.util.List;

/**
 * 表结构
 * @author devilishking
 *
 */
public class TablePdmXml {
	private String id;							 		//编号
	private String name;	 					 		//表名
	private String code;	 							//编码
	private String className;					 		//对应类名
	private String viewId; 					 	 		//所属视图编号
	private List<ColumnPdmXml> columnPdmXmlListMapList; //字段结构集合
	private List<String> importClassList;		 		//需导入的类库
	
	public TablePdmXml(){
		columnPdmXmlListMapList = new ArrayList<ColumnPdmXml>();
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	
	public String getViewId() {
		return viewId;
	}
	public void setViewId(String viewId) {
		this.viewId = viewId;
	}
	
	public List<ColumnPdmXml> getColumnPdmXmlList() {
		return columnPdmXmlListMapList;
	}
	public void setColumnPdmXmlList(List<ColumnPdmXml> columnPdmXmlList) {
		this.columnPdmXmlListMapList = columnPdmXmlList;
	}

	public List<String> getImportClassList() {
		return importClassList;
	}
	public void setImportClassList(List<String> importClassList) {
		this.importClassList = importClassList;
	}

	public String toString() {
			StringBuffer buffer = new StringBuffer();
			buffer.append("[TablePdmXml:");
			buffer.append(" id: ");
			buffer.append(id);
			buffer.append(" name: ");
			buffer.append(name);
			buffer.append(" code: ");
			buffer.append(code);
			buffer.append(" className: ");
			buffer.append(className);
			buffer.append(" viewId: ");
			buffer.append(viewId);
			buffer.append(" columnPdmXmlListMapList: ");
			buffer.append(columnPdmXmlListMapList);
			buffer.append(" importClassList: ");
			buffer.append(importClassList);
			buffer.append("]");
			return buffer.toString();
		}
}